import { 
    Carousel, 
    CarouselItem ,
    Pagination,
    Input,
    Tooltip,
    Button,
    Avatar,
    Popover,
    Menu,
    MenuItem,
    Slider,
    Divider,
    Dialog,
    Form,
    FormItem,
    Tabs,
    TabPane,
    Table,
    TableColumn,
    Loading,
} from 'element-ui'
import Vue from 'vue'

const components = [
    Carousel,
    CarouselItem,
    Pagination,
    Input,
    Tooltip,
    Button,
    Avatar,
    Popover,
    Menu,
    MenuItem,
    Slider,
    Divider,
    Dialog,
    Form,
    FormItem,
    Tabs,
    TabPane,
    Table,
    TableColumn,
]
Vue.use(Loading.directive)
Vue.prototype.$Loading = Loading.service
export default {
    install(Vue) {
        components.forEach(item => {
            Vue.component(item.name,item)
        })
    }
}